# -*- coding:UTF-8 -*-
"""
DataChain 的主模块
"""

import hashlib

class DataChain():
    def __init__(self):
        self.data = []
        self.record = []
        self.pHash = []
        self.nouce = 0
        self.index = 0

    def chain_check(self):
        hash_check = hashlib.sha256()
        hash_check.update()
    def get_from_set(self,chain):
        self.data = chain['data']
        self.data = chain['record']
        self.pHash = chain['pHash']